package com.cn.data.ioc;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: chenl
 * @Date: 2019/11/9 19:54
 */
public class Test {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext(AppConfig.class);

        ac.getBean(IndexService.class);
    }
}
